from django.views import View
from rest_framework import serializers

from users.models import User


class UserModelSerializer(serializers.ModelSerializer):
    """用户模块"""
    class Meta:
        model = User
        fields = ('id', 'username', 'password', 'mobile')

    extra_kwargs = {'id': {'read_only': True}}


